home *** CD-ROM | disk | FTP | other *** search
- /* This file contains all client information */
- /* It HAS to be included first. */
-
- if (typeof(BrandThunder) == "undefined") {
- BrandThunder = {};
- BrandThunder.clients = {};
- }
-
- BrandThunder.clients.coolhandnuke = {
- "shortName": "coolhandnuke",
- "clientName": "Cool Hand Nuke",
- "clientCode": "000155",
- "askOriginCode": "101519",
- "clientVersion": "001",
- "clientCountry": "US",
- "rebrandID": "",
- "extensionID": "coolhandnukeboom@coolhandnuke.com",
- /* This is the short name used in chrome.manifest (toolbar) */
- "packageName": "coolhandnukeboom",
- "welcomePage": "http://pages.brandthunder.com/coolhandnuke/firstrun",
- "homePage": "http://coolhandnuke.com",
- // "toolbarUpdateURL": "http://brandthunder.com/sports/social/coolhandnuke/toolbar.json",
- "defaultSearchEngine": "Yahoo! - BT",
- "booms": {
- "coolhandnuke": "Cool Hand Nuke"
- }
- }
-
- /* I hate this, but I don't see any way around it. Firefox toggleSidebar doesn't
- allow for custom parameters and we need them. */
-
- if (typeof(toggleSidebar) != "undefined") {
- if (!toggleSidebar.btReplaced) {
- var origToggleSidebar = toggleSidebar;
-
- function btToggleSidebar(commandID, forceOpen) {
- if (commandID) {
- if (commandID.substring(0,3) == "bt-") {
- var sidebarBox = document.getElementById("sidebar-box");
- var commands = commandID.split('?');
- if (commands.length > 1) {
- sidebarBox.setAttribute("btSidebarParams", commands[1]);
- if (!document.getElementById("sidebar-box").hidden) {
- var sidebarid = window.top.document.getElementById("sidebar-box").getAttribute("sidebarcommand");
- var sidebarurl = window.top.document.getElementById('sidebar').getAttribute("src");
- if (sidebarid == commands[0]) {
- if (!(sidebarurl.match(commands[1]))) {
- origToggleSidebar();
- }
- }
- }
- }
- commandID = commands[0];
- }
- }
- origToggleSidebar(commandID, forceOpen);
- }
-
- toggleSidebar = btToggleSidebar;
- toggleSidebar.btReplaced = true;
- toggleSidebar.origToggleSidebar = origToggleSidebar;
- }
- }